# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

platform :ios, '8.0'

source 'https://github.com/CocoaPods/Specs.git'
source 'http://git.baijiashilian.com/open-ios/specs.git'

target 'ZhiBoYuan' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for ZhiBoYuan


    pod 'AFNetworking'
    pod 'MJExtension'
    pod 'DZNEmptyDataSet'
    pod 'UITableView+FDTemplateLayoutCell'
    pod 'JPush'
    pod 'JShare'
    pod 'SDCycleScrollView'


# 百家云
    pod 'BJPlayerManagerUI' , :path => '../BJVideoPlayerUI/'
    pod 'BJPlayerManagerCore', '~> 1.4.0'
    pod 'BJVideoPlayer'

    pod 'BJPlaybackCore'
    pod 'BJPlaybackUI'
    
#    pod 'BJLiveCore', '~> 1.3.0'

    pod 'BJLiveCore'
    pod 'BJLiveUI'
    
#   答题
    pod 'YYKit'
    pod 'ReactiveCocoa', '2.5'
    pod 'PNChart'
    pod 'pop'
    pod 'FDFullscreenPopGesture'
    pod 'JCTagListView', '1.0.1'

  target 'ZhiBoYuanTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'ZhiBoYuanUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

# pods 1.4 添加
post_install do |installer|
    copy_pods_resources_path = "Pods/Target Support Files/Pods-ZhiBoYuan/Pods-ZhiBoYuan-resources.sh"
    string_to_replace = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"'
    assets_compile_with_app_icon_arguments = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${BUILD_DIR}/assetcatalog_generated_info.plist"'
    text = File.read(copy_pods_resources_path)
    new_contents = text.gsub(string_to_replace, assets_compile_with_app_icon_arguments)
    File.open(copy_pods_resources_path, "w") {|file| file.puts new_contents }
end

